import axios from "axios"
let host = "http://localhost:8080"
let fns = {
    async TmList(){
        let page = parseInt(Math.random()*1000);
        let httpUrl = `${host}/api/text?page=${page}`;
        let res = await axios.get(httpUrl);
        //console.log(res.data)
        return res.data
    }
}

export default fns;